package net.sk.ws;


import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cl.dao.SearchDao;
import com.cl.util.CommonUtil;

@Service
public class StateCenter {
	public static final String ACTION_SYS_MSG = "action.sys.msg";
	public static final String PR_SYS_SUBSCRIBE = "PR_SYS_SUBSCRIBE";
    @SuppressWarnings("rawtypes")
	@Autowired
    private SearchDao searchDao;
	@Autowired
	private CommonUtil commonUtil;
	@Autowired
	private WSServlet wSServlet;
	@Autowired
	private HeartThread heartThread;
	

	public void startHeartThread(){
 		Thread th = new Thread(heartThread);
		th.start();
	}
	StateCenter(){
	}
	@PostConstruct  
    public void  init(){  
		startHeartThread();
    }  	
}
